package com.service.config.constant;

/**
 * @ClassName ApiUrlConstants
 * @Description TODO
 * @Author guochuang
 * @Date 2021/03/29 11:21
 * @Version 1.0
 */
public interface ApiUrlConstants {
    /**
     * 顾客端AppId wx425745f7e28b23b3 测试用 wx94adc0b7ffed8f20  正式 wxb68eb643dd12d071
     */
    public static final String CUSTOMER_APP_ID = "wxb68eb643dd12d071";
    /**
     * 顾客端密钥 8956a782eedb895b3bf64c32fde56749 测试用 c9565dade825bb675f60338fa43c0b79
     * 正式 e9289af97d6d2846092ec153f8dc3c07
     */
    public static final String CUSTOMER_SECRET = "e9289af97d6d2846092ec153f8dc3c07";
    /**/
    /**
     * 老板端AppId wx953b27ef19dfd001
     */
    public static final String BOSS_APP_ID= "wx953b27ef19dfd001";
    /**
     * 老板端密钥 b7910a30288d2926dddf56c3f67176f6
     */
    public static final String BOSS_SECRET = "b7910a30288d2926dddf56c3f67176f6";

    public static final String URL_FIRST = "https://";
    /**
     * 获取云管理token
     */
    public static final String CLOUD_CAMPUS_TOKEN_URL = ".huaweicloud.com:18002/controller/v2/tokens";
    /**
     *
     */
    public static final String DIAL_TEST_TOKEN_URL = "insight-naas.huaweicloud.com/rest/plat/smapp/v1/oauth/token";
    /**
     * 获取站点
     */
    public static final String SITE_URL = ".huaweicloud.com:18002/controller/campus/v3/sites?pageSize=100&pageIndex=";
    /**
     * 获取拨测数据
     */
    public static final String DIAL_TEST_URL = "/rest/campusdialingservice/v1/appdialing/data";
    /**
     * 根据siteId获取SSID配置
     */
    public static final String SS_ID_URL = "https://naas.huaweicloud.com:18002/controller/campus/v3/networkconfig/site/";
    /**
     * 创建指定站点的SSID配置
     */
    public static final String SS_ID_ADD_URL = ".huaweicloud.com:18002/controller/campus/v3/networkconfig/site/";
    /**
     * 修改指定站点的SSID配置
     */
    public static final String SS_ID_UPDATE_URL = ".huaweicloud.com:18002/controller/campus/v3/networkconfig/site/";
    /**
     * 删除指定站点的SSID配置
     */
    public static final String SS_ID_DEL_URL = ".huaweicloud.com:18002/controller/campus/v3/networkconfig/site/";
    public static final String CLOUD_CAMPUS_TOKEN_URL_NOT = ".naas.huaweicloud.com:18002/controller/campus/api/v1/multiregion/tokens";
    public static final String CT_YUN_CLOUD_CAMPUS_TOKEN_URL = "cn1.naas.huaweicloud.com:18002/controller/campus/api/v1/multiregion/tokens";
    public static final String CN2_CLOUD_CAMPUS_TOKEN_URL = "cn2.naas.huaweicloud.com:18002/controller/v2/tokens";
    // 获取天翼云和云管理站点
    public static final String SITE_URL_NOT = ":18002/controller/campus/v3/sites?pageSize=100&pageIndex=";
    /**
     * 站点下的设备
     */
    public static final String DEVICES_URL = ".huaweicloud.com:18002/controller/campus/v3/devices";
    /**
     * 设备维度下用户信息
     */
    public static final String DEVICE_USER_INFO = "https://naas.huaweicloud.com:18002/controller/campus/v1/performanceservice/station/client/device/";
    /**
     * 站点维度下用户信息
     */
    public static final String SITE_USER_INFO = "https://naas.huaweicloud.com:18002/controller/campus/v1/performanceservice/station/client/site/";

    //Portal在线用户查询
    public static final String PROTAL_ONLINE_USER = "https://naas.huaweicloud.com:18002/controller/campus/v1/accountservice/onlineusers?";

    //获取查询终端TopN应用流量
    public static final String APP_TRAFFIC = ".huaweicloud.com:18002/controller/campus/v1/performanceservice/application/apptraffic/topapp?top=5&timeDimension=day&appDimension=apptype&siteId=";
    /**
     * 查询站点维度TopN设备或者所有设备的上行流量、下行流量
     */
    public static final String DEVICE_TRAFFIC = ".huaweicloud.com:18002/controller/campus/v1/performanceservice/basicperformance/devicetraffic/statistic/site/";
    /**
     * 查询实时接入客户数量
     */
    public static final String REAL_TIME_FLOW = ".huaweicloud.com:18002/controller/campus/v1/performanceservice/endpointbehavior/realtimeflow?siteId=";
    /**
     * 终端用户列表信息查询
     */
    public static final String TERMINAL_USER_LIST = ".huaweicloud.com:18002/controller/campus/v1/performanceservice/station/client/site/";
    /**
     * 查询TOP N SSID流量和最近在线用户数
     */
    public static final String TOPN_SSID_TRAFFIC = ".huaweicloud.com:18002/controller/campus/v1/performanceservice/basicperformance/topnssidtraffic/";
    /**
     * 查询站点维度下用户在线时长信息
     */
    public static final String USER_ONLINE_TIME = ".huaweicloud.com:18002/controller/campus/v1/performanceservice/station/online/statistic/";
    /**
     * 基于站点的站点健康度查询
     */
    public static final String SITE_HEALTH = ".huaweicloud.com:18002/controller/campus/v1/performanceservice/basicperformance/siteshealth/";
    /**
     * 查询云管设备健康度趋势
     */
    public static final String CLOUD_DEVICE_HEALTH = ".huaweicloud.com:18002/controller/campus/v1/performanceservice/basicperformance/trend/";

    /**
     * 查询终端拨测数据
     */
    public static final String DIAL_TEST = "rest/campusdialingservice/v1/appdialing/data";
    /**
     * 拨测获取用户token
     */
    public static final String DIAL_TEST_TOKEN_AUTH = "/rest/plat/smapp/v1/oauth/token";

    /**
     * get请求 微信登录凭证校验接口 appid=APPID&secret=SECRET&
     */
    public static final String WEI_XIN_CODE2_SESSION = "https://api.weixin.qq.com/sns/jscode2session?grant_type=authorization_code&appid=";
    public static final String secret = "&secret=";
    public static final String js_code = "&js_code=";
    /**
     * getAccessToken 获取小程序全局唯一后台接口调用凭据（access_token）。调用绝大多数后台接口时都需使用 access_token，开发者需要进行妥善保存
     */
    public static final String WEI_XIN_GET_ACCESS_TOKEN =  "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=";
    //POST https://api.weixin.qq.com/wxa/generatescheme?access_token=ACCESS_TOKEN
    public static final String URL_SCHEME_GENERATE = "https://api.weixin.qq.com/wxa/generatescheme?access_token=";
    //POST  https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=ACCESS_TOKEN
    //获取手机号
    public static final String GET_PHONE_NUMBER = "https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=";
    //企业微信小程序getAccessToken 获取小程序全局唯一后台接口调用凭据（access_token）。调用绝大多数后台接口时都需使用 access_token，开发者需要进行妥善保存
    //https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=ID&corpsecret=SECRET
    public static final String QY_WEI_XIN_GET_ACCESS_TOKEN =  "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=";
    //企业微信的应用密钥
    public static final String qy_corp_secret = "&corpsecret=";
   // 获取访问用户身份
    //https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE
    public static final String  qy_get_user_id = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=";
    public static final String qy_code = "&code=";
    //https://qyapi.weixin.qq.com/cgi-bin/miniprogram/jscode2session?access_token=ACCESS_TOKEN&js_code=CODE&grant_type=authorization_code 临时登录凭证校验接口
    public static final String code2Session = "https://qyapi.weixin.qq.com/cgi-bin/miniprogram/jscode2session?grant_type=authorization_code&access_token=";
    public static final String getUser = "https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=";
    public static final String getUserId =  "&userid=";
    // 生成二维码 getUnlimited POST
    public static final String WEI_XIN_GET_UNLIMITED = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=";
    /**
     * 获取 scene 值
     */
    public static final String WEI_XIN_SCENE = "&scene=";
    /**
     * 查询网络链路列表信息
     */
    public static final String LINK_AGGREGATION = ".huaweicloud.com:18002/rest/openapi/network/link";
    /**
     * 查询内联链路
     */
    public static final String SITE_LINK_AGGREGATION = ".huaweicloud.com:18002/controller/campus/v1/sdwan/net/lag-ports";


    // 获取 scene 值
    public static final String WEI_XIN_scene = "&scene=";

    //单一域名
    public static final String AUTHORIZATION_URL = ".huaweicloud.com:18002/controller/cloud/v2/northbound/accessuser/haca/authorization";
    //统一域名
    public static final String AUTHORIZATION_URL_NOT = ":18002/controller/cloud/v2/northbound/accessuser/haca/authorization";

    //飞书
    public static final String LARK_GET_ACCESS_TOKEN =  "https://open.feishu.cn/open-apis/auth/v3/app_access_token/internal";
    public static final String LARK_CODE2SESSION =  "https://open.feishu.cn/open-apis/mina/v2/tokenLoginValidate";
    public static final String LARK_GET_USERINFO =  "https://open.feishu.cn/open-apis/contact/v3/users/";
//    public static final String LARK_APP_ID =  "cli_a12c64b30b7a100d";
//    public static final String LARK_APP_SECRET =  "qEdmyGJvgdZqqqXPnsuRwOad18DycIWf";

    //钉钉
    public static final String DING_GET_ACCESS_TOKEN =  "https://oapi.dingtalk.com/gettoken?appkey=";
    public static final String DING_secret="&appsecret=";

    public static final String DING_CODE2SESSION =  "https://oapi.dingtalk.com/topapi/v2/user/getuserinfo?access_token=";
    public static final String DING_GET_USERINFO =  "https://oapi.dingtalk.com/topapi/v2/user/get?access_token=";
//    public static final String DING_APP_KEY =  "dingcenmshu9axdmzvom";
//    public static final String DING_APP_SECRET =  "QEc5x2W2sznZaxwpmeTq9IvisrC7OPt8oDYwWywLwgD3o-uh19kmtltrPnfxXL5g";
    //public static final String SMS_URL = "https://rtcsms.cn-north-1.myhuaweicloud.com:10743/sms/batchSendSms/v1";
//    String SMS_APP_KEY = "CJe9HF7VuXRR1D42wRBMSxVdv3CP"; //APP_Key
//    String SMS_APP_SECRET = "S8RcZ196tcN8631Q8mHn7SpIGjm8"; //APP_Secret
//    String SMS_SENDER = "99200620888880005796";
//    String SMS_TEMPLATE_ID = "83a7f0659b02463f9683053e4e93e33a"; //模板ID
//    public static final String SMS_URL = "https://smsapi.cn-north-4.myhuaweicloud.com:443/sms/batchSendSms/v1";
//    public static final String SMS_APP_KEY = "9ZMcWcel7K1M6VducvaBMJm16j52"; //APP_Key
//    public static final  String SMS_APP_SECRET = "kvgYQwCpEfWMKGMHDO6PCKzXK5x9"; //APP_Secret
//    public static final String SMS_SENDER = "1069368924410001154";
//    public static final String SMS_TEMPLATE_ID = "178e787f791247bf9a4e9c3fe7dae384"; //模板ID
    public static final String SMS_URL = "https://rtcsms.cn-north-1.myhuaweicloud.com:10743//sms/batchSendSms/v1";
    public static final String SMS_APP_KEY = "rU9m355XgfGCcLkvbK277K7kT759"; //APP_Key
    public static final  String SMS_APP_SECRET = "IT3shqH7LmctcO41Zncn9DvZ5h45"; //APP_Secret
    public static final String SMS_SENDER = "8821101909041";
    public static final String SMS_TEMPLATE_ID = "178e787f791247bf9a4e9c3fe7dae384"; //模板ID
    public static final String SMS_SIGNATURE = "【华为乾坤】"; //短信签名 // 华为云短信测试

    //qq
    public static final String QQ_GET_ACCESS_TOKEN = "https://api.q.qq.com/api/getToken?grant_type=client_credential&appid=";
    public static final String QQ_SECRET = "&secret=";
    public static final String QQ_CODE2SESSION = "https://api.q.qq.com/sns/jscode2session?grant_type=authorization_code&appid=";
    public static final String QQ_JS_CODE = "&js_code=";
}


